﻿using AutoMapper;
using HSGD.Extensions.Profiles;
using HSGD.Extensions.Profiles.HSGDFamily;
using HSGD.Extensions.Profiles.HSGDStaff;

namespace HSGD.Extensions;

/// <summary>
/// 静态全局 AutoMapper 配置文件
/// </summary>
public class AutoMapperConfig {
    public static MapperConfiguration RegisterMappings() {
        return new MapperConfiguration(cfg => {
            cfg.AddProfile(new CustomProfile());
            cfg.AddProfile(new HSGDFamilyProfiles());
            cfg.AddProfile(new HSGDStaffProfiles());
        });
    }
}
